package lab02.test25;

import javax.sound.midi.Soundbank;
import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * Created by MECHREV on 2017/11/5.
 */
public class Test {


    public static void main(String[] args) {
 Double number1;
 Double number2;
 Double result;
        Scanner scanner = new Scanner(System.in);
        System.out.println("第一个数：");
        number1=scanner.nextDouble();
        System.out.println("第二个数：");
        number2=scanner.nextDouble();
        result=number1/number2;
        System.out.println(result);
        try{
            number2 =0.0;
        }
        catch (InputMismatchException e){
            System.out.println("类型异常");
        }
        finally {
            System.out.println("sss");
        }

    }
    }

